package com.zty.user.convert;

import com.zty.user.entity.po.SysUser;
import com.zty.user.entity.req.SysUserReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author ZTY
 * @Description SysUser相关的实体映射（类比BeanUtils.copyProperties）  实际上底层是set/get操作，效率最高
 * @Date 13:23 2023-12-12
 **/

@Mapper
public interface SysUserConverter {

    SysUserConverter INSTANCE = Mappers.getMapper(SysUserConverter.class);

    //  这样就转换成功了
    SysUser convertReqToSysUser(SysUserReq sysUserReq);

}
